package apache;

/**
 * unit length: 1 m
 * unit area: 1 sm
 * unit scale: house area / yard area
 * <p>
 * real scale:  imag yard_radius / 270pixel
 * 270pixel Is Yard Radius Of Draw.
 */
public interface Scale {
    double yard_area = 100.0;

    double standard_area_scale = (Math.pow(5.0, 0.5) - 1.0) / 2.0;

    double house_area = Scale.yard_area * Scale.standard_area_scale;

    double pi = Math.acos(-1.0);

    double yard_radius = Math.pow(Scale.yard_area / Scale.pi, 0.5);

    double house_side = Math.pow(Scale.house_area, 0.5);

    double pool_area = Scale.pi;

    double pool_east_area = Scale.pool_area * Scale.standard_area_scale;

    double pool_south_area = Scale.pool_area - Scale.pool_east_area;

    double pool_east_radius = Math.pow(Scale.pool_east_area / Scale.pi, 0.5);

    double pool_south_radius = Math.pow(Scale.pool_south_area / Scale.pi, 0.5);

    double standard_pixel = Scale.yard_radius / 270.0;

}
